#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<utility>
using namespace std;

int main() {
	pair<int, int> p1(1, 2);
	pair<int, pair<int, int>> p2(3, make_pair(4, 5));
	pair<pair<int, int>, pair<int, int>> p3(make_pair(6, 7), make_pair(8, 9));

	cout << p1.first << ", " << p1.second << endl;
	cout << p2.first << ", " << p2.second.first << ", " << p2.second.second << endl;
	cout << p3.first.first << ", " << p3.first.second << ", " << p3.second.first << ", " << p3.second.second << endl;
	return 0;
}